package cn.hd.dao;

import cn.hd.entity.Advertise;

import java.util.List;
import java.util.Map;

public interface AdvertiseDao {
    //根据名称模糊分页查询查询
    public List<Advertise> selectAdvertise(Map map);

    //两表联查分页展示审核成功的广告
    public List<Advertise> selectAllAdvertise();

    //添加
    public int addAdvertise(Advertise advertise);

    //根据编号查询
    public Advertise selectAdvertiseById(long adid);

    //修改
    public int updateAdvertise(Advertise advertise);

    //删除
    public int deleteAdvertise(long adid);

    //修改审核状态为成功
    public int updateAdvertisePass(long adid);

    //修改审核状态为失败
    public int updateAdvertiseFail(long adid);
}
